package com.xyy.saas.payment.adpater.xydLoan.core.req;

import com.xyy.saas.payment.adpater.xydLoan.core.dto.XydAuthCreditDto;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author wangzeqi
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
public class XydAuthCreditReq extends XydLoanBaseRequest {

    /**
     * 平台类型 取值范围(PC, H5),默认H5
     */
    private String platType = "H5";

    /**
     * 授信授权请求DTO
     */
    private XydAuthCreditDto auth;

    public static XydAuthCreditReq mock() {
        XydAuthCreditReq xydAuthCreditReq = new XydAuthCreditReq();
        xydAuthCreditReq.setPlatformCode("yaobangmang");
        xydAuthCreditReq.setProductNo("GYL-YCD-CGD");
        xydAuthCreditReq.setAuth(new XydAuthCreditDto()
                .setDeviceNo("DV001")
                .setThirdUserNo("YBMU001")
                .setBusinessLicense("952001H"));
        xydAuthCreditReq.setPlatType("H5");
        return xydAuthCreditReq;
    }

}
